import { View, Text, Image } from '@tarojs/components';
import Taro from '@tarojs/taro';
import React from 'react';
import { connect } from 'react-redux';
import * as T from '../../types';
import './index.less';
import actions from '../../actions';
import { store2Props } from '../../selectors';
import {IPLAND_OSS_HOST} from '../../../../constant';

//@ts-ignore
actions().actions.loadReducer();
//@ts-ignore
@connect<Partial<T.IProps>, any>(store2Props, actions)
export default class Menu extends React.Component<Partial<T.IProps>, any> {
  constructor(props) {
    super(props);
    this.state = {};
  }

  render() {
    return (
      <View className="menu">
        <View className="collect">
          <Text className="title">限定收藏</Text>
          <Image className="img" src={`${IPLAND_OSS_HOST}shop/collect.png`} mode="heightFix" />
        </View>
        <View className="tehui">
          <Text className="title">超值特惠</Text>
          <Image className="img" src={`${IPLAND_OSS_HOST}shop/tehui.png`} mode="heightFix" />
        </View>
        <View className="liyu">
          <Text className="title">转角礼遇</Text>
          <Image className="img" src={`${IPLAND_OSS_HOST}shop/liyu.png`} mode="heightFix" />
        </View>
      </View>
    );
  }
}

//create by moon https://github.com/creasy2010/moon
